NDepend.API Documentation
EqualsAny<T>(T,T,T) Method
NDepend.Helpers Namespace > ExtensionMethodsMisc Class > EqualsAny Method : EqualsAny<T>(T,T,T) Method
The generic parameter value type of items.
this items.
First item to compare to.
Second item to compare to.
Returns true if this item equals item1 or item2.
Syntax
[Extension()]
public static bool EqualsAny<T>( 
   T item,
   T item1,
   T item2
)
where T: new(), struct

Parameters

item
this items.
item1
First item to compare to.
item2
Second item to compare to.

Type Parameters

T
The generic parameter value type of items.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsMisc Class
ExtensionMethodsMisc Members
Overload List